<extend name="Public/layout"/>
<block name="head">
<link rel="stylesheet" href="__PUBLIC__css/ceping-question.css">
        <style type="text/css">
        .footer{
            display: none;
        }
        </style>
</block>

<block name="main">
    <div class="banner">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <a href="#">
                        <img src="__PUBLIC__images/ceping-question-banner.png" alt="">
                    </a>
                </div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
    </div>
    <div class="content">
        <!--平台名称-->
        <div class="platform-name-wrapper">
            <p>请填写您需要测评的平台名称<span>*</span></p>
            <input type="text" name="plat" placeholder="请填写您需要测评的平台名称">
        </div>
        <!--是否投资-->
        <div class="platform-info-wrapper">
            <p>您有投资过这家平台么?<span>*</span></p>
            <div class="options-wrapper">
                <label>
                    <input type="radio" value="还没有，没准备投" name="invest">
                    <span class="icon-checkbox"></span>
                    <span class="text">还没有，没准备投</span>
                </label>
                <label>
                    <input type="radio"  value="3个月内"  name="invest">
                    <span class="icon-checkbox"></span>
                    <span class="text">3个月内</span>
                </label>
                <label>
                    <input type="radio" value="1年以内"  name="invest">
                    <span class="icon-checkbox"></span>
                    <span class="text">1年以内</span>
                </label>
            </div>
        </div>
        <!--不好的地方-->
        <div class="platform-info-wrapper">
            <p>你认为这家网贷平台不好的地方在哪里?<span>*</span></p>
            <div class="options-wrapper">
                <label>
                    <input type="checkbox" value="服务差劲" name="bad">
                    <span class="icon-checkbox"></span>
                    <span class="text">服务差劲</span>
                </label>
                <label>
                    <input type="checkbox" value="标难抢，资金站岗严重" name="bad">
                    <span class="icon-checkbox"></span>
                    <span class="text">标难抢，资金站岗严重</span>
                </label>
                <label>
                    <input type="checkbox" value="回款速度慢" name="bad">
                    <span class="icon-checkbox"></span>
                    <span class="text">回款速度慢</span>
                </label>
                <label>
                    <input type="checkbox" value="合规程度太低" name="bad">
                    <span class="icon-checkbox"></span>
                    <span class="text">合规程度太低</span>
                </label>
                <label>
                    <input type="checkbox" value="收费高" name="bad">
                    <span class="icon-checkbox"></span>
                    <span class="text">收费高</span>
                </label>
                <label>
                    <input type="checkbox" value="其他" name="bad">
                    <span class="icon-checkbox"></span>
                    <span class="text">其他</span>
                </label>
            </div>
        </div>
        <!--评价-->
        <div class="platform-suggest-wrapper">
            <p>你认为这家网贷平台不好的地方在哪里?</p>
            <input type="text" name="eval" placeholder="任何您想到的评价">
        </div>
        <!--测评流程-->
        <div class="platform-ceping-step">
            <h5>【平台测评流程】</h5>
            <p>每周一开放测评通道，周三关闭</p>
            <p>每周三在8号金融街微信订阅号为您需要测评的平台进行投票。</p>
            <p>每周四关闭投票通道，对得票最高的平台进行评测。</p>
            <p>每周五在8号金融街微信订阅号公布该平台详细的测评报告。</p>
        </div>
        <!--联系方式-->
        <div class="contact-us">
            <p>【联系方式】</p>
            <p>8号金融街微信订阅号：bahjie</p>
            <p>8号金融街官方社群：621868255</p>
            <p>8号金融街官方客服QQ：1000828</p>
        </div>
    </div>
    <div class="btn-wrapper">
        <a href="javascript:" onclick="sub()">提交</a>
    </div>

<!--底部-->
</block>
<block name="js">
    <script type="text/javascript">

    var plat_invest =[];
    var plat_bad =[];

        function sub() {
            var plat_name = $('input[name="plat"]').val();
            if(!plat_name) {
                    layer.open({
                        content:"平台名称不能为空"
                        ,skin: 'msg'
                        ,time: 1.5
                    });
                    return;
            }
            var plat_eval = $('input[name="eval"]').val();
            $('input[name="invest"]:checked').each(function(){
                plat_invest.push($(this).val());
            });
            $('input[name="bad"]:checked').each(function(){
                plat_bad.push($(this).val());
            });
            var data = {plat_name,plat_eval,plat_invest,plat_bad};
            $.post('{:U("Platform/plat_qusetion")}',data,function(res) {

                    layer.open({
                        content:res.msg
                        ,skin: 'msg'
                        ,time: 1.5

                    });
                var app_tag = "{$_GET['app_tag']}";
                if(!app_tag){
                location.href = "/Home/Video/appraisal";
                }else{
                    layer.open({
                        content:"提交成功！"
                        ,skin: 'msg'
                        ,time: 1.5
                        ,end:function(){
                            location.reload();
                        }
                    });
                }
                     
            });



        }
    </script>
</block>